﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BootyBay.Models;
using System.Runtime.Serialization;

namespace BootyBay.Models
{

    [Flags]
    public enum ProcessorArchitecture
    {
        x86 = 0,
        x64 = 9,
        ARM = 4,
        Neutual = 11,
        Unknown = 65535
    }

    public enum AppOperationType
    {
        NA = -1,
        //Purchase,
        Install = 1,
        Update,
        Uninstall,
        RequestToInstall,
        RequestToUninstall
    }

    //[DataContract]
    //public class StoreAppMgmtTask
    //{
    //    public StoreAppMgmtTask(ApplicationVersionInfo app)
    //    {
    //        this.AppPackageName = app.IdentityName;
    //        this.AppPublisherName = app.Publisher;
    //        this.AppVerInfoID = app.Id;
    //        this.PackageCertLocationUrl = "";// app.PackageCertLocationUrl;
    //        this.PackageLocationUrl = "";// app.PackageLocationUrl;
    //    }

    //    //[IgnoreDataMember]
    //    //private ApplicationVersionInfo App;

    //    [DataMember]
    //    public int AppVerInfoID { get; set; }

    //    [DataMember]
    //    public AppOperationType OptType { get; set; }

    //    [DataMember]
    //    public AppOperationStatus OptStatus { get; set; }

    //    [DataMember]
    //    public DateTime UtcTimeStamp { get; set; }

    //    [DataMember]
    //    public Guid TaskID { get; set; }

    //    [DataMember]
    //    public string UserName { get; set; }

    //    [DataMember]
    //    public string TaskNote { get; set; }

    //    [DataMember]
    //    public string PackageLocationUrl
    //    {
    //        get;
    //        set;
    //    }

    //    [DataMember]
    //    public string PackageCertLocationUrl
    //    {
    //        get;
    //        set;
    //    }

    //    [DataMember]
    //    public string AppPackageName
    //    {
    //        get;
    //        set;
    //    }

    //    [DataMember]
    //    public string AppPublisherName
    //    {
    //        get;
    //        set;
    //    }
    //}



    //public enum AppOperationStatus
    //{
    //    RequestSubmitted,
    //    AgentReceived,
    //    Succeeded,
    //    Failed,
    //    Unknown
    //}


}
